package com.woniuxy.cloud.carl.carlstation.client;

import com.woniuxy.cloud.carl.carlstation.client.dto.StationDto;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "StationClient",name="carlstation")
public interface StationClient {
@GetMapping("/addStation")
    public Result addStation(@RequestParam("stationName") String stationName);

    @GetMapping("/findAllStation")
    public Result<List<StationDto>> findAllStation();
}
